//****************************************************************
//* Copyright (c) 2008 Ford Motor Company. All Rights Reserved.
//*
//* $$Workfile:   PartPopupForm.java  $$
//* $$Revision:   1.1  $$
//* $$Author:   JLOPE262  $$
//* $$Date:   Nov 21 2008 14:27:12  $$
//*
//*****************************************************************
package ar.com.ford.it.fullEconomics.view.form;

import java.util.Collection;
import org.apache.struts.validator.ValidatorForm;
import ar.com.ford.it.fullEconomics.persistence.dto.Teesp01Part;

public class PartPopupForm extends ValidatorForm {
    private String section;
    private String supplierClass;
    private String supplierCode;
    private String partClass;
    private String partPrefix;
    private String partBase;
    private String partSuffix;
    private String supplierClassId;
    private String supplierCodeId;
    private String partClassId;
    private String partPrefixId;
    private String partBaseId;
    private String partSuffixId;
    private Collection<Teesp01Part> parts;
    
    public void resetForm() {
        this.section = null;
        this.supplierClass = null;
        this.supplierCode = null;
        this.partClass = null;
        this.partPrefix = null;
        this.partBase = null;
        this.partSuffix = null;   
        this.parts = null;
        this.partClassId = null;
        this.partPrefixId = null;
        this.partBaseId = null;
        this.partSuffixId = null;
        this.supplierClassId = null;
        this.supplierCodeId = null;
    }

    public String getPartBase() {
        return partBase;
    }

    public void setPartBase(String partBase) {
        this.partBase = partBase;
    }

    public String getPartClass() {
        return partClass;
    }

    public void setPartClass(String partClass) {
        this.partClass = partClass;
    }

    public String getPartPrefix() {
        return partPrefix;
    }

    public void setPartPrefix(String partPrefix) {
        this.partPrefix = partPrefix;
    }

    public String getPartSuffix() {
        return partSuffix;
    }

    public void setPartSuffix(String partSuffix) {
        this.partSuffix = partSuffix;
    }

    public String getSection() {
        return section;
    }

    public void setSection(String section) {
        this.section = section;
    }

    public String getSupplierClass() {
        return supplierClass;
    }

    public void setSupplierClass(String supplierClass) {
        this.supplierClass = supplierClass;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public Collection<Teesp01Part> getParts() {
        return parts;
    }

    public void setParts(Collection<Teesp01Part> parts) {
        this.parts = parts;
    }
    
    public Teesp01Part getPart() {
        Teesp01Part part = new Teesp01Part();
        
        part.setEesp01PartClassCodeC(this.getPartClass());
        part.setEesp01PartPrefixCodeC(this.getPartPrefix());
        part.setEesp01PartBaseCodeC(this.getPartBase());
        part.setEesp01PartSuffixCodeC(this.getPartSuffix());
        
        return part;
    }

    public String getPartBaseId() {
        return partBaseId;
    }

    public void setPartBaseId(String partBaseId) {
        this.partBaseId = partBaseId;
    }

    public String getPartClassId() {
        return partClassId;
    }

    public void setPartClassId(String partClassId) {
        this.partClassId = partClassId;
    }

    public String getPartPrefixId() {
        return partPrefixId;
    }

    public void setPartPrefixId(String partPrefixId) {
        this.partPrefixId = partPrefixId;
    }

    public String getPartSuffixId() {
        return partSuffixId;
    }

    public void setPartSuffixId(String partSuffixId) {
        this.partSuffixId = partSuffixId;
    }

    public String getSupplierClassId() {
        return supplierClassId;
    }

    public void setSupplierClassId(String supplierClassId) {
        this.supplierClassId = supplierClassId;
    }

    public String getSupplierCodeId() {
        return supplierCodeId;
    }

    public void setSupplierCodeId(String supplierCodeId) {
        this.supplierCodeId = supplierCodeId;
    }
    
}
